package assignment

import org.springframework.cloud.contract.spec.Contract

Contract.make {
    request {
        method 'GET'
        url("")
        url value(consumer("api/v2/onlineCodingQuizzes/\\d+/answer"),
                producer("/api/v2/onlineCodingQuizzes/1/answer"))

        headers {
            contentType(applicationJsonUtf8())
            header('id', 1)
        }
    }
    response {
        status(200)
    }
}